/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2015
 */

package com.environment_pro.monitor.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.environment_pro.monitor.util.StaticUtil;

/**
 * @author yangfeng 
 * @version 1.0
 * @since 1.0
 */


public class TbSystemJob implements java.io.Serializable{

	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "TbSystemJob";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_JOB_NAME = "任务名称 英文";
	public static final String ALIAS_JOB_DESCRIPT = "任务描述";
	public static final String ALIAS_JOB_CLASS = "任务实现类";
	public static final String ALIAS_JOB_CRON = "执行周期";
	public static final String ALIAS_JOB_STATUS = "任务状态";
	public static final String ALIAS_DELETED = "删除标记";
	public static final String ALIAS_ADD_TIME = "时间";
	
	
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	private java.lang.Integer id;

	private java.lang.String jobName;

	private java.lang.String jobDescript;

	private java.lang.String jobClass;

	private java.lang.String jobCron;

	private java.lang.String jobStatus;

	private java.lang.String deleted;

	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") 
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private  java.util.Date addTime;

	//columns END

	//date String
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") 
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private java.util.Date addTimeBegin;

	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") 
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private java.util.Date addTimeEnd;

	public TbSystemJob(){
	}

	public TbSystemJob(
		java.lang.Integer id
	){
		this.id = id;
	}

	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.Integer getId() {
		return this.id;
	}
	public void setJobName(java.lang.String value) {
		this.jobName = value;
	}
	
	public java.lang.String getJobName() {
		return this.jobName;
	}
	public void setJobDescript(java.lang.String value) {
		this.jobDescript = value;
	}
	
	public java.lang.String getJobDescript() {
		return this.jobDescript;
	}
	public void setJobClass(java.lang.String value) {
		this.jobClass = value;
	}
	
	public java.lang.String getJobClass() {
		return this.jobClass;
	}
	public void setJobCron(java.lang.String value) {
		this.jobCron = value;
	}
	
	public java.lang.String getJobCron() {
		return this.jobCron;
	}
	public void setJobStatus(java.lang.String value) {
		this.jobStatus = value;
	}
	
	public java.lang.String getJobStatus() {
		return this.jobStatus;
	}
	public void setDeleted(java.lang.String value) {
		this.deleted = value;
	}
	
	public java.lang.String getDeleted() {
		return this.deleted;
	}

	public void setAddTimeBegin(java.util.Date value) {
		this.addTimeBegin = value;
	}
	
	public java.util.Date getAddTimeBegin() {
		return this.addTimeBegin;
	}

	public void setAddTimeEnd(java.util.Date value) {
		this.addTimeEnd = value;
	}
	
	public java.util.Date getAddTimeEnd() {
		return this.addTimeEnd;
	}
	
	public void setAddTime(java.util.Date value) {
		this.addTime = value;
	}
	
	public java.util.Date getAddTime() {
		return this.addTime;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("JobName",getJobName())
			.append("JobDescript",getJobDescript())
			.append("JobClass",getJobClass())
			.append("JobCron",getJobCron())
			.append("JobStatus",getJobStatus())
			.append("Deleted",getDeleted())
			.append("AddTime",getAddTime())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof TbSystemJob == false) return false;
		if(this == obj) return true;
		TbSystemJob other = (TbSystemJob)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

